﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Text;

namespace ZSens
{
    //class DeviceId
    //{
    //    int id;
    //    DeviceId next;
    //}

    class Device
    { 
        public bool present { get; private set; }
        public String deviceName { get; private set; }

        public IPEndPoint ip { get; private set; }
        public Player player { get; private set; }

        public void Enable(String deviceName, IPEndPoint ip, Player player)
        {
            present = true;
            this.deviceName = deviceName;
            this.ip = ip;
            this.player = player;
        }

        public void Disconnect()
        {
            present = false;
            deviceName = null;
            ip = null;
            player = null;
        }

        public Device()
        {
            present = false;
            deviceName = null;
            player = null;

        }
    }
}
